-- GENERATED SPELL FOR [Prophet of Quetz'lun] --


function spell0_28671(pUnit, Event) --@Lingering Presence of Quetz\'lun,Self--
pUnit:FullCastSpellOnTarget(54606,pUnit)
pUnit:RegisterEvent('Sorts_28671', 589, 1)
end

function spell1_28671(pUnit, Event) --@Serpent Form,Self--
pUnit:FullCastSpellOnTarget(54601,pUnit)
pUnit:RegisterEvent('Sorts_28671', 10500, 1)
end

function Sorts_28671(pUnit, Event)
local choix_sorts_28671 = math.random(0, 1)
if choix_sorts_28671 == 0 then
pUnit:RegisterEvent('spell0_28671', 1, 1)
end
if choix_sorts_28671 == 1 then
pUnit:RegisterEvent('spell1_28671', 1, 1)
end
end

function mob28671_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28671', math.random(1500, 3000), 1)
end

function mob28671_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28671_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28671_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28671, 1, 'mob28671_Action')
RegisterUnitEvent(28671, 2, 'mob28671_Leave')
RegisterUnitEvent(28671, 3, 'mob28671_Kill')
RegisterUnitEvent(28671, 4, 'mob28671_Die')
